package com.qs.rocketmq.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.math.BigDecimal;
import java.util.Date;


@ToString
@Data
@Alias("Order")
@TableName(value = "t_order")
public class Order {

    @TableId(type = IdType.AUTO)
    private String id;

    private String productId;

    private String userId;

    private String couponId;

    private String orderSn;

    private Date createTime;

    private BigDecimal totalAmount;

    private BigDecimal payAmount;

    private BigDecimal couponAmount;

    private String status;

    private Date modifyTime;

}
